package huanzhao.erp.mapper;

import huanzhao.erp.domain.entity.Package;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import huanzhao.erp.domain.types.PackageType;
import org.apache.ibatis.annotations.Param;

public interface PackageMapper extends BaseMapper<Package> {
    /**
     * 根据发货/签收的类型获取手机在该类型下的记录数
     *
     * @param phoneId     手机id
     * @param packageType 发货/签收的类型
     * @return int
     * 2024/10/11 11:41:30
     */
    int getCountByPhoneIdAndType(@Param("phoneId") Long phoneId, @Param("packageType") PackageType packageType);
}




